# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""
import docx
import re

myDocument = docx.Document("散文名篇.docx")
for myParagraph in myDocument.paragraphs:
	if re.match("^Heading [1-3]",myParagraph.style.name):
		myElement = myParagraph._element
		myElement.getparent().remove(myElement)

myDocument.save("02散文名篇.docx")
